import request from '@/utils/request'

// 获取用户银行卡列表
export function getUserBankCardList(data) {
  return request({
    url: '/user/shop/wallet/getUserBankCardList',
    method: 'post',
    data
  })
}

// 识别银行卡
export function ocrBankCard(data) {
  return request({
    url: '/user/shop/wallet/ocrBankCard',
    method: 'post',
    data
  })
}

// 获取银行列表
export function getBankList(data) {
  return request({
    url: '/user/shop/wallet/getBankList',
    method: 'post',
    data
  })
}

// 添加银行卡
export function addBankCard(data) {
  return request({
    url: '/user/shop/wallet/addBankCard',
    method: 'post',
    data
  })
}

// 发送绑定银行卡短信验证码
export function sendBindCardCode(data) {
  return request({
    url: '/shop/sms/sendBindCardCode',
    method: 'post',
    data
  })
}

// 删除银行卡
export function delBankCard(data) {
  return request({
    url: '/user/shop/wallet/delBankCard',
    method: 'post',
    data
  })
}

// 获取钱包信息
export function getWallet(data) {
  return request({
    url: '/user/shop/wallet/getWallet',
    method: 'post',
    data
  })
}
